package com.vader.flea.util;

public class PageCalculator {
    public static int calculateRowIndex(int pageIndex,int pageSize){
        int rowIndex = (pageIndex > 0)? (pageIndex-1)*pageSize:0;
        return rowIndex;
    }
}
